<tagLib name="fanwe" />
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<div class="handle-btns">
	<fanwe:imageBtn id="addData" name="addData" value="{$Think.lang.ADD}" click="addData()" />
	<fanwe:imageBtn id="editData" name="editData" value="{$Think.lang.EDIT}" click="editData(this,'checkList','cate_id')" />
	<fanwe:imageBtn id="removeData" name="removeData" value="{$Think.lang.REMOVE}" click="removeData(this,'checkList')" />
	<if condition="$parent_id gt 0">
		<fanwe:linkBtn text="{$Think.lang.RETURN_PREV}" href="{:U(MODULE_NAME.'/index',array('parent_id'=>$pp_id))}" />
	</if>
	<fanwe:linkBtn text="{$Think.lang.CATE_UPDATE}" href="{:U(MODULE_NAME.'/updateCache')}" />
	<p style="float:right; padding:5px 5px 0 0;">{$Think.lang.CATE_UPDATE_TIP}</p>
</div>
<fanwe:list id="checkList" pk="cate_id" style="list" name="cate" checkbox="true" action="true" datasource="list" show="cate_id:{$Think.lang.ID}|50,cate_name:{$Think.lang.CATE_NAME}|~left:textEdit|cate_id,short_name:{$Think.lang.SHORT_NAME}|~left:textEdit|cate_id,tag_name:TAG|100,cate_code:{$Think.lang.CATE_CODE}|100:textEdit|cate_id,sort:{$Think.lang.SORT}|80:numberEdit|cate_id,is_index|getStatusImg:{$Think.lang.IS_INDEX}|60:toggleStatus|cate_id,status|getStatusImg:{$Think.lang.STATUS}|50:toggleStatus|cate_id,cate_typename:栏目类型|50,platform:平台|50" 
            actionlist="showProducts:产品({$nums[$cate[cate_id]]}):cate_id,Caiji:采集:cate_id,cate_id|getHandlerLinks=$cate,editData:{$Think.lang.EDIT}:cate_id,removeData:{$Think.lang.REMOVE}:cate_id" action_width="430" action_align="right"/>
<div class="pager">{$page}</div>
<include file="Public:footer" />
<script type="text/javascript">
function showProducts(obj, id, key) {
    location.href = '?a=man&m=WoguProducts&cate_id=' + id;
}

function Caiji(obj, id, key) {
    location.href = '?a=cjkeyword&m=WoguProductImport&cate_id=' + id;
}
</script>